package Main;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Scanner;

import dao.DAOFactory;
import dao.ExecSeqDAO;
import dao.ProcessDAO;
import dao.ResourceDeclarationDAO;
import dao.SystemConfigurationDAO;

import entities.ExecSeq;
import entities.Process;
import entities.ResourceDeclaration;
import entities.SystemConfiguration;


public class FileReader {
	ProcessDAO p;
	ExecSeqDAO e;
	ResourceDeclarationDAO rd;
	SystemConfigurationDAO sc;
	public FileReader(){
		DAOFactory myDAOFactory = DAOFactory.getInstance(DAOFactory.MYSQL);
	    p = myDAOFactory.createProcessDAO();
	    e = myDAOFactory.createExecSeqDAO();
	    rd = myDAOFactory.createResourceDeclarationSeqDAO();
	    sc = myDAOFactory.createSystemConfigurationDAO();
	}
	 
	
	public String[] getExecSeqCol(){
		return e.getExecSeqCol();
	}

	public String[] getResourceDeclarationCol() {
		return rd.getResourceDeclarationCol();
	}

	public String[] getProcessCol() {
		return p.getProcessCol();
	}

	public String[] getSysConfigCol() {
		return sc.getSysConfigCol();
	}

	public LinkedList <ArrayList<ExecSeq>> getExecSeq() {
		return e.getExecSeq();
	}

	public ArrayList <ResourceDeclaration> getResourceDeclaration() {
		return rd.getResourceDeclaration();
	}

	public ArrayList <Process> getProcess() {
		return p.getProcess();
	}


	public SystemConfiguration getSystemConfiguration() {
		return sc.getSystemConfiguration();
	}
	


}
